package com.hyt.it.ogt.ykcj.domain.exam;

import com.hyt.it.ogt.ykcj.common.annotation.Excel;
import com.hyt.it.ogt.ykcj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 考试题干信息对象 exam_stem_info
 *
 * @author admin
 * @date 2021-09-09
 */
@Data
@ToString(callSuper = true)
public class ExamStemInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 题目code
     */
    @ApiModelProperty(value = "题目code")
    private String stemCode;

    /**
     * 考试科目ID
     */
    @ApiModelProperty(value = "考试科目ID")
    @Excel(name = "考试科目ID")
    private String subjectId;

    /**
     * 题干名称
     */
    @ApiModelProperty(value = "题干名称")
    @NotBlank(message = "题干名称不能为空")
    @Excel(name = "题干名称")
    private String name;

    /**
     * 题目数量
     */
    @ApiModelProperty(value = "题目数量")
    @NotBlank(message = "题目数量不能为空")
    @Excel(name = "题目数量")
    private Integer titleNumber;

    /**
     * 题目总分
     */
    @ApiModelProperty(value = "题目总分")
    @NotBlank(message = "题目总分不能为空")
    @Excel(name = "题目总分")
    private BigDecimal totalPoints;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门ID")
    @Excel(name = "部门id")
    private String deptId;

    /**
     * 机构id
     */
    @ApiModelProperty(value = "机构id")
    @Excel(name = "机构id")
    private String officeId;
}
